<div class="his_infos">
  <div class="left">
    <img src="<%= current_user.image%>" alt="<%= current_user.name%>"/>
  </div>
  <div class="right">
    <h1><%= current_user.name%></h1>
    <p>
      <%if current_user.is_female%>
        <img src="/images/icon_female.gif" alt="女"/>
      <%end%>
      <%if !current_user.is_female%>
        <img src="/images/icon_male.gif" alt="男"/>
      <%end%>
      <span><%=current_user.city%></span>
    </p>
  </div>
</div>
<div class="weibo-details">

  <div class="headline"><span style="float:left;margin-right: 10px;">找人</span>
    <% form_tag "/user_search",:method=>:get do -%>
      <%= text_field_tag "name", params[:name]%>
      <%= submit_tag "搜索",:class => "submit"%>
    <% end %>
  </div>
  <%= will_paginate @users,{:prev_label=>'前一页', :next_label=>'下一页'} %>
  <ul>
    <% @users.each do |user| %>
      <li>
        <p>
          <a href="/user/<%=user.id%>"><%= h user.name%>：</a><%= h user.gender%>，<%= h user.city%></p>
      </li>
    <% end %>
  </ul>
  <%= will_paginate @weibos,{:prev_label=>'前一页', :next_label=>'下一页'} %>
</div>
